import grails.test.*

class WhoaTestsTests extends GrailsUnitTestCase {
    protected void setUp() {
        super.setUp()
    }

    protected void tearDown() {
        super.tearDown()
    }

    void testCalculateCost() {
        Whoa whoa = new Whoa(member: new Employee(percentageWork: 100.0, firstName: "Lars", lastName: "Larsson", street: "Vasavägen",
                                    city: "Linköping", zipCode: 55551, dob: new Date(1952,07,22),
                                    email: "lars.larsson@gmail.com",  title: "Mr",  salary: 10000.0, employeeId: 35,),
                                hours: 17.00)

        Whoa whoa1 = new Whoa(member: new Employee(percentageWork: 100.0, firstName: "Lars", lastName: "Larsson", street: "Vasavägen",
                                    city: "Linköping", zipCode: 55551, dob: new Date(1982,07,22),
                                    email: "lars.larsson@gmail.com",  title: "Mr",  salary: 10000.0, employeeId: 35,),
                                hours: 17.32)
        
        assertEquals whoa.calculateCost(), 1200.0
        assertEquals whoa1.calculateCost(), 1200.0
    }

    void testSomething() {

    }
}
